//
//  AWServeAppArtcleMessage.h
//  AtWork2
//
//  Created by lucas on 15/6/4.
//  Copyright (c) 2015年 Foreveross. All rights reserved.
//

#import "AWChatMessage.h"

/**
 *  服务号图文消息。
 */
@interface AWArticleChatMessage : AWChatMessage

@property (nonatomic, strong, readonly) NSArray *articles;

@end

/**
 *  图文，目前只在服务号图文消息中使用。
 */
@interface AWArticle : NSObject

@property (nonatomic, copy, readonly) NSString *url;

@property (nonatomic, copy, readonly) NSString *articleId;

@property (nonatomic, copy, readonly) NSString *title;

@property (nonatomic, copy, readonly) NSString *author;

@property (nonatomic, copy, readonly) NSString *summary;

@property (nonatomic, copy, readonly) NSString *content;

@property (nonatomic, copy, readonly) NSString *contentSource;

@property (nonatomic, assign, readonly, getter=hasShowCover) BOOL showCover;

@property (nonatomic, copy, readonly) NSString *coverMediaId;

@property (nonatomic, copy,readonly) NSString *coverUrl;

@property (nonatomic, assign, readonly) UInt64 createTime;

@property (nonatomic, assign, readonly) NSUInteger sort;

+ (instancetype)articleWithDictionary:(NSDictionary *)dictonary;

- (instancetype)initWithDictionary:(NSDictionary *)dictionary;

@end